<div class="main">
  <p class="top">
    <% if @important == "1"%>
       校园要闻
    <% elsif  @important == "0" %>
       校园快讯
    <% else %>
      <%= " 热点专题 > #{@sptitle.name}" if @sptitle %>
      <%=raw breadnumb(@category) if @category %>
      <%= " #{@category.cataname}" if @category %>
    <% end %>
  </p>
    <ul class="item">
      <%@news.each do |news|%>
        <li>
          <a href="/mobile/news/<%= news.id %>?important=<%= @important%>&category_id=<%= @category_id%>">
            <%=raw news.title%>
          </a>
        </li>
      <% end %>
    </ul>
  <style>
    .pagination li{
        float:left;
        margin: 3px;
    }
  </style>
  <%= paginate @news %>
</div>